package com.team.arms.bingyi.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.team.arms.bingyi.domain.BingyiRegistInfo;
import com.team.arms.bingyi.domain.dto.ConscriptDto;
import com.team.arms.bingyi.domain.vo.*;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @Entity com.ruoyi.bingyi.domain.BingyiRegistInfo
 */
public interface BingyiRegistInfoMapper extends BaseMapper<BingyiRegistInfo> {
    //应征人员
    Boolean updateBypoliinfoid(@Param("bingyiInfoId") String bingyiInfoId, @Param("conscriptvo") ConscriptVo conscriptvo);
    List<ConscriptVo> select();

    List<ConscriptVo>  selectByFiled(@Param("field") String field, @Param("content") String content);

    @Select(" select * from  basical where bingyi_info_id = #{bingyiInfoId}")
    List<ConsAllVo>  selectall(@Param("bingyiInfoId") String bingyiInfoId);

    //待初检
    Boolean updateexamine(@Param("bingyiInfoId") String bingyiInfoId, @Param("examineVo") ExamineVo examineVo);
    List<ExamineVo> selectexamine();
    List<ExamineVo> selectexamineByFiled(@Param("field") String field, @Param("content") String content);


    //初检通过
    Boolean updateexaminepass(@Param("bingyiInfoId") String bingyiInfoId, @Param("examinepassVo") ExaminepassVo examinepassVo);
    List<ExaminepassVo> selectexaminepass();
    List<ExaminepassVo> selectexaminepassByFiled(@Param("field") String field, @Param("content") String content);

    //上站确认
    Boolean updateup(@Param("bingyiInfoId") String bingyiInfoId, @Param("examinepassVo") UpperVo upperVo);
    List<UpperVo> selectup();
    List<UpperVo> selectupByFiled(@Param("field") String field, @Param("content") String content);


    List<ConscriptDto> find(@Param("conscriptDto") ConscriptDto conscriptDto);

}




